.class Lcom/waiqin365/lightapp/chexiao/by;
.super Lcom/waiqin365/base/a/a;


# instance fields
.field final synthetic b:Lcom/waiqin365/lightapp/chexiao/bs;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/chexiao/bs;)V
    .locals 1

    iput-object p1, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {p1}, Lcom/waiqin365/lightapp/chexiao/bs;->j(Lcom/waiqin365/lightapp/chexiao/bs;)Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/waiqin365/base/a/a;-><init>(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method public a(ILandroid/view/View;Landroid/view/ViewGroup;Lcom/waiqin365/base/a/b;)Landroid/view/View;
    .locals 8

    const/4 v7, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/bs;->f(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/d/h;

    const v1, 0x7f0c04fd

    invoke-virtual {p4, p2, v1}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v2, 0x7f0c0214

    invoke-virtual {p4, p2, v2}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    const v3, 0x7f0c0548

    invoke-virtual {p4, p2, v3}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    const v4, 0x7f0c0549

    invoke-virtual {p4, p2, v4}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/CheckBox;

    invoke-virtual {v4, v0}, Landroid/widget/CheckBox;->setTag(Ljava/lang/Object;)V

    iget-object v5, v0, Lcom/waiqin365/lightapp/product/d/h;->c:Ljava/lang/String;

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/product/d/h;->d:Z

    if-eqz v1, :cond_3

    const/16 v1, 0x8

    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_0
    new-instance v1, Lcom/waiqin365/lightapp/chexiao/bz;

    invoke-direct {v1, p0, v4}, Lcom/waiqin365/lightapp/chexiao/bz;-><init>(Lcom/waiqin365/lightapp/chexiao/by;Landroid/widget/CheckBox;)V

    invoke-virtual {v4, v1}, Landroid/widget/CheckBox;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v1, Lcom/waiqin365/lightapp/chexiao/ca;

    invoke-direct {v1, p0, v4}, Lcom/waiqin365/lightapp/chexiao/ca;-><init>(Lcom/waiqin365/lightapp/chexiao/by;Landroid/widget/CheckBox;)V

    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->c(Lcom/waiqin365/lightapp/chexiao/bs;)Lcom/waiqin365/lightapp/product/d/j;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/d/j;->e:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, ","

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v2}, Lcom/waiqin365/lightapp/chexiao/bs;->c(Lcom/waiqin365/lightapp/chexiao/bs;)Lcom/waiqin365/lightapp/product/d/j;

    move-result-object v2

    iget-object v2, v2, Lcom/waiqin365/lightapp/product/d/j;->e:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ","

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/product/d/h;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->k(Lcom/waiqin365/lightapp/chexiao/bs;)Z

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->b(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_6

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->b(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->b(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->b(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/chexiao/bs;->a(Lcom/waiqin365/lightapp/chexiao/bs;Lcom/waiqin365/lightapp/product/d/h;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :cond_2
    const/4 v1, 0x1

    invoke-virtual {v4, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    :goto_1
    iget v1, v0, Lcom/waiqin365/lightapp/product/d/h;->f:I

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v2}, Lcom/waiqin365/lightapp/chexiao/bs;->j(Lcom/waiqin365/lightapp/chexiao/bs;)Landroid/content/Context;

    move-result-object v2

    const/high16 v3, 0x41400000    # 12.0f

    invoke-static {v2, v3}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v2

    mul-int/2addr v1, v2

    iget-boolean v2, v0, Lcom/waiqin365/lightapp/product/d/h;->d:Z

    if-eqz v2, :cond_7

    iget v0, v0, Lcom/waiqin365/lightapp/product/d/h;->f:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->j(Lcom/waiqin365/lightapp/chexiao/bs;)Landroid/content/Context;

    move-result-object v1

    const/high16 v2, 0x41a00000    # 20.0f

    invoke-static {v1, v2}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v1

    mul-int/2addr v0, v1

    :goto_2
    invoke-virtual {p2}, Landroid/view/View;->getPaddingTop()I

    move-result v1

    invoke-virtual {p2}, Landroid/view/View;->getPaddingRight()I

    move-result v2

    invoke-virtual {p2}, Landroid/view/View;->getPaddingBottom()I

    move-result v3

    invoke-virtual {p2, v0, v1, v2, v3}, Landroid/view/View;->setPadding(IIII)V

    return-object p2

    :cond_3
    invoke-virtual {v2, v7}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->f(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-eq p1, v1, :cond_4

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, v0, Lcom/waiqin365/lightapp/product/d/h;->a:Ljava/lang/String;

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v5, ""

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v1}, Lcom/waiqin365/lightapp/chexiao/bs;->f(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v1

    add-int/lit8 v6, p1, 0x1

    invoke-interface {v1, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/product/d/h;

    iget-object v1, v1, Lcom/waiqin365/lightapp/product/d/h;->b:Ljava/lang/String;

    invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_5

    :cond_4
    const v1, 0x7f0200c5

    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_0

    :cond_5
    const v1, 0x7f0200c6

    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_0

    :cond_6
    invoke-virtual {v4, v7}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto/16 :goto_1

    :cond_7
    move v0, v1

    goto :goto_2
.end method

.method public a(I)Lcom/waiqin365/lightapp/product/d/h;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/bs;->f(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/d/h;

    return-object v0
.end method

.method public b()I
    .locals 1

    const v0, 0x7f0300e0

    return v0
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/by;->b:Lcom/waiqin365/lightapp/chexiao/bs;

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/bs;->f(Lcom/waiqin365/lightapp/chexiao/bs;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public synthetic getItem(I)Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/chexiao/by;->a(I)Lcom/waiqin365/lightapp/product/d/h;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method
